package org.example.auth.service;

import org.example.auth.contract.request.UserRequestForCreate;
import org.example.auth.contract.request.UserRequestForUpdatePassword;
import org.example.auth.model.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface UserService {

    User getUserByIdWithException(Long id);

    User save(UserRequestForCreate request);

    User login(String loginName, String password);

    List<User> getUserList();

    void updatePassword(UserRequestForUpdatePassword request);

    void deleteUser(Long id);
}
